package com.ysd.lis.controller.lab;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.lab.LabDiagnosTemp;
import com.ysd.lis.request.lab.DiagnosTempDto;
import com.ysd.lis.service.lab.LabDiagnosTempService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 通道号管理表 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-10-29
 */
@RestController
@RequestMapping("/lab/diagnosTemp")
public class LabDiagnosTempController extends BaseController {

    @Autowired
    LabDiagnosTempService labDiagnosTempService;

    @ApiOperation("查询")
    @GetMapping("/findDiagnosTempList")
    public Result findDiagnosTempList(DiagnosTempDto param) {
        return labDiagnosTempService.findDiagnosTempList(param);
    }

    @ApiOperation("新增")
    @PostMapping("/addDiagnosTemp")
    public Result addDiagnosTemp(@RequestBody LabDiagnosTemp standard){
        return  labDiagnosTempService.addDiagnosTemp(standard);
    }

    @ApiOperation("修改")
    @PostMapping("/editDiagnosTemp")
    public Result editDiagnosTemp(@RequestBody LabDiagnosTemp standard){
        return labDiagnosTempService.editDiagnosTemp(standard);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteDiagnosTemp")
    public Result batchDeleteDiagnosTemp(@RequestBody DiagnosTempDto dto){
        return  labDiagnosTempService.batchDeleteDiagnosTemp(dto);
    }

}
